package com.xingbang.service;
import com.xingbang.dao.UserMapper;
import com.xingbang.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class UserService {
	@Resource
	private UserMapper userMapper;
	public List<Map<Object, Object>> select(List<Integer> userIdList) {
		return userMapper.select(userIdList);
	}
	public List<User> selectAll() {
		return userMapper.selectAll();
	}
	public int deleteByPrimaryKey(Long userid) {
		return userMapper.deleteByPrimaryKey(userid);
	}
	public int insert(User record) {
		return userMapper.insert(record);
	}
	public int insertSelective(User record) {
		return userMapper.insertSelective(record);
	}
	public User selectByPrimaryKey(Long userid) {
		return userMapper.selectByPrimaryKey(userid);
	}
	public int updateByPrimaryKeySelective(User record) {
		return userMapper.updateByPrimaryKeySelective(record);
	}
	public int updateByPrimaryKey(User record) {
		return userMapper.updateByPrimaryKey(record);
	}
}


